package cn.wolfcode.common.utils;

public abstract class CarUtils {
    public static boolean isLicensePlate(String licensePlate){
        if(StringUtils.isEmpty(licensePlate)){
            return false;
        }
        /*Pattern pattern = Pattern.compile("^1[3|4|5|6|7|8|9][0-9]\\d{8}$");
        Matcher matcher = pattern.matcher(phoneNumber);
        // 匹配
        return matcher.matches();*/
        return licensePlate.matches("^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$");
    }
}
